<?php
if(session('?errors')){
    $errors = session('errors');
}else{
    $errors = false;
}
?>
<?php if($errors):?>
    <ul>
        <?php foreach ($errors as $error):?>
        <li class="alert alert-danger ps-3 p-2" style="font-size: 13px">
            <i class="fa fa-bell-o"></i>&nbsp;
            <?php echo $error;?>
        </li>
        <?php endforeach;?>
    </ul>
<?php session('errors',null) ;?>
<?php endif;?>

<!--注册页输入非法时把会话信息存放在session，-->
<!--表格提交的错误-->